{include file="admin/includes/header.tpl"}

<h1>My Settings</h1>
{print_q}

<form action="{$smarty.server.PHP_SELF}" method="post">
<input type="hidden" name="_required[]" id="_required[]" value="name" />
<input type="hidden" name="_required[]" id="_required[]" value="email" />

<fieldset>
  <legend>General</legend>
  
  <p><label>Name</label>
    <input type="text" name="name" id="name" value="{$user->name}" /></p>
    
  <p><label>E-Mail Address</label>
    <input type="text" name="email" id="email" value="{$user->email}"></p>
</fieldset>

<fieldset>
  <legend onclick="$('PW').toggle();">Password</legend>
  <div id="PW">
    <small>Do not enter a password unless you want to change it.</small>
    <p><label for="password">New Password</label>
       <input type="password" name="password" id="password" maxlength="255" value="{$user->password}" {$disabled}/></p>
    <p><label for="password">New Password (confirm)</label>
       <input type="password" name="password_confirm" id="password_confirm" maxlength="255" value="{$user->password_confirm}" {$disabled}/></p>
  </div>
</fieldset>

<p><input type="submit" value="Change My Settings" /> <input type="reset" value="Reset" /></p>

</form>

{if $user->password == ""}
{literal}
<script language="javascript">
$('PW').hide();
</script>
{/literal}
{/if}

{include file="admin/includes/footer.tpl"}